package com.qf.commerce.service;

import com.github.pagehelper.PageInfo;
import com.qf.commerce.common.dto.WarehouseDto;
import com.qf.commerce.common.vo.WarehouseVo;


import java.util.List;

/**
 * @author Administrator
 */
public interface WarehouseService {
    int addWarehouse(WarehouseDto warehouseDto);

    int modifyWarehouse(WarehouseDto warehouseDto);

    int deleteWarehouse(Long warehouseId);

    int deleteWarehouses(List<Long> warehouseIds);

    /**
     * 发货点状态切换
     * @param warehouseDto
     * @return
     */
    int switchDeliverStatus(WarehouseDto warehouseDto);

    /**
     * 收货点状态切换
     * @param warehouseDto
     * @return
     */
    int switchReceiveStatus(WarehouseDto warehouseDto);

    PageInfo<WarehouseVo> queryWarehouseList();
}
